/**
 * SharedFlyWeightMenu.java is created by Zachariah at 2012-2-1 下午05:28:39
 */
package com.zack.designPattern.flyweight;

/**
 * @author zachariah zzcfrog@gmail.com
 *
 */
public class SharedFlyWeightMenu implements FlyWeightMenu {

	private String name;
	
	protected SharedFlyWeightMenu(String name){
		this.name = name;
	}
	
	@Override
	public String getName() {
		return this.name;
	}

	@Override
	public void orderDish(String customer, String dishName) {
		System.out.println(customer+"从"+name+"菜谱中点了"+dishName);
	}

}
